import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 经销商对账查询
export const getReconciliationList = params => axios.post(`${SERVER.SEARCH_DMSCLOUD_PART}/dealer/reconciliation`, params);
// 经销商对账查询导出
export const getExcelList = (params = {}) => {
  // for (const key in params) {
  //   if (!params[key]) {
  //     params[key] = '';
  //   }
  // }
  const url = `${SERVER.DMSCLOUD_PART}/dealer/export`;
  return axios({
    url,
    method: 'post',
    responseType: 'blob',
    data: params
  });
};
